package cn.sirun.com.fca.personal.center.block.item.impl;

import com.tencent.cloud.iov.util.ObjectUtils;

import cn.sirun.com.fca.personal.center.block.item.INoticeSettingItem;

public class NoticeSettingItem implements INoticeSettingItem {
    private int mTitleId;

    private String mTitle;

    private boolean mSwitch = false;

    @Override
    public int getTitleId() {
        return mTitleId;
    }

    @Override
    public String getTitle() {
        return mTitle;
    }

    @Override
    public boolean isSwitch() {
        return mSwitch;
    }


    public void setmTitleId(int mTitleId) {
        this.mTitleId = mTitleId;
    }


    public void setmTitle(String mTitle) {
        this.mTitle = mTitle;
    }

    public void setmSwitch(boolean mSwitch) {
        this.mSwitch = mSwitch;
    }

    public NoticeSettingItem(){

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        NoticeSettingItem that = (NoticeSettingItem) o;
        return mTitleId == that.mTitleId &&
                mSwitch == that.mSwitch &&
                ObjectUtils.equals(mTitle, that.mTitle);
    }

    @Override
    public int hashCode() {
        return ObjectUtils.hash(mTitleId, mTitle);
    }
}
